<?php

namespace app\common\model;

use app\common\model\account\ShopAccountModel;
use think\facade\Db;


class AllianceConf extends CommonModel{

    protected  $name = 'alliance_conf';

    protected  $pk   = 'id';

    public static function info(){
        $info = Db::name('alliance_conf')
            ->where(['id'=>1])
            ->field("*")
            ->find();
        return $info;
    }
    public static function up($data){
        $data['edit_time']=date('Y-m-d H:i:s');
        $where['id']=1;
        $res=self::update($data,$where);
        return $res;
    }

}

